package tk.mybatis.springboot.model;

import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import java.sql.Timestamp;


public class Country extends BaseEntity {
    /**
     * 名称
     */
    @NotBlank(message = "{country.countryname.notBlank}")
    private String countryname;

    /**
     * 代码
     */
    private String countrycode;

    //@JSONField("yyyy-MM-dd")
   // @Transient
    @Column(name = "create_time")
    private Timestamp createtime;



    /**
     * 获取名称
     *
     * @return countryname - 名称
     */
    public String getCountryname() {
        return countryname;
    }

    /**
     * 设置名称
     *
     * @param countryname 名称
     */
    public void setCountryname(String countryname) {
        this.countryname = countryname;
    }

    /**
     * 获取代码
     *
     * @return countrycode - 代码
     */
    public String getCountrycode() {
        return countrycode;
    }

    /**
     * 设置代码
     *
     * @param countrycode 代码
     */
    public void setCountrycode(String countrycode) {
        this.countrycode = countrycode;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }


}